package com.example.indenture.message.service;

import com.example.indenture.common.vo.Result;
import com.example.indenture.message.entity.Message;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author gzp
 * @create 2023-02-22 10:36
 */
@Service
public interface MessageService {
//    Map<Message, List<Message>> selectMessage(int rid);

    List<List<Message>> selectMessage(int rid);

    Result<Message> insertMessage(Message message);

    Message getMessageByMid(int mid);
}
